﻿using Notification.Wpf;
using System.Collections.ObjectModel;

namespace GameView.Services
{
    public class NotificationHistoryService
    {
        private readonly NotificationManager _notificationManager;
        public ObservableCollection<NotificationContent> History { get; } = new();

        public NotificationHistoryService(NotificationManager notificationManager)
        {
            _notificationManager = notificationManager;
        }

        public void ShowAndRecord(NotificationContent content)
        {
            // 显示通知
            _notificationManager.Show(content);

            // 记录到历史
            History.Add(content);
        }
    }
}